package com.zzedu.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.zzedu.common.annotation.Excel;
import jakarta.validation.constraints.NotNull;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * (教育-学校)收费订单_付款对象 zz_charge_order_pay
 * 
 * @author Mr.Wang
 * @date 2025-10-18
 */
@TableName("zz_charge_order_pay")
public class ZzChargeOrderPay implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.INPUT)
    private Long id;

    /** 计费开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "计费开始日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startDate;

    /** 计费结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "计费结束日期", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endDate;

    /** 学校ID */
    @Excel(name = "学校ID")
    private Long schoolId;

    /** 实际付款金额(分) */
    @Excel(name = "实际付款金额(分)")
    private BigDecimal amount;

    /** 收款确认人 */
    @Excel(name = "收款确认人")
    private Long doUserId;

    /** 收款备注 */
    @Excel(name = "收款备注")
    private String doRemark;

    /** 付费状态 1-未付款 0-已付款 */
    @Excel(name = "付费状态 1-未付款 0-已付款")
    private Integer payState;

    /** 收款确认时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "收款确认时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime doTime;

    /** 添加时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    @NotNull(message = "添加时间不能为空")
    private LocalDateTime gmtCreate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.UPDATE)
    @NotNull(message = "更新时间不能为空")
    private LocalDateTime gmtModify;

    /** 逻辑删除(0：未删除 1：id) */
    @Excel(name = "逻辑删除(0：未删除 1：id)")
    @TableLogic(delval = "id")
    @TableField(fill = FieldFill.INSERT)
    @NotNull(message = "逻辑删除(0：未删除 1：id)不能为空")
    private Integer deleted;

    private String schoolName;


    private BigDecimal fee;

    private Integer stuCount;

    private String linkMan;

    /** 创建人 */
    @TableField(fill = FieldFill.INSERT)
    private Long createBy;

    /** 修改人 */
    @TableField(fill = FieldFill.UPDATE)
    private Long updateBy;

    /** 计费年月 */
    @Excel(name = "计费年月")
    private String calcMonth;

    /** 学生数 */
    @Excel(name = "学生数")
    private Long stuNum;

    /** 新增学生数量 */
    @Excel(name = "新增学生数量")
    private Long addStuNum;

    /** 新增学生金额 */
    @Excel(name = "新增学生金额")
    private BigDecimal addStuAmount;

    /** 续费学生数量 */
    @Excel(name = "续费学生数量")
    private Long renewStuNum;

    /** 续费学生金额 */
    @Excel(name = "续费学生金额")
    private BigDecimal renewStuAmount;

    /** 续费类型 */
    @Excel(name = "续费类型")
    private Integer renewType;

    /** 实际付款 */
    @Excel(name = "实际付款")
    private BigDecimal actAmount;

    /**
     * 查看
     */
    private Integer readFlag;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStartDate(LocalDateTime startDate) 
    {
        this.startDate = startDate;
    }

    public LocalDateTime getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(LocalDateTime endDate) 
    {
        this.endDate = endDate;
    }

    public LocalDateTime getEndDate() 
    {
        return endDate;
    }
    public void setSchoolId(Long schoolId) 
    {
        this.schoolId = schoolId;
    }

    public Long getSchoolId() 
    {
        return schoolId;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setDoUserId(Long doUserId) 
    {
        this.doUserId = doUserId;
    }

    public Long getDoUserId() 
    {
        return doUserId;
    }
    public void setDoRemark(String doRemark) 
    {
        this.doRemark = doRemark;
    }

    public String getDoRemark() 
    {
        return doRemark;
    }
    public void setPayState(Integer payState) 
    {
        this.payState = payState;
    }

    public Integer getPayState() 
    {
        return payState;
    }
    public void setDoTime(LocalDateTime doTime) 
    {
        this.doTime = doTime;
    }

    public LocalDateTime getDoTime() 
    {
        return doTime;
    }
    public void setGmtCreate(LocalDateTime gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModify(LocalDateTime gmtModify)
    {
        this.gmtModify = gmtModify;
    }

    public LocalDateTime getGmtModify()
    {
        return gmtModify;
    }
    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }
    public void setCreateBy(Long createBy) 
    {
        this.createBy = createBy;
    }

    public Long getCreateBy() 
    {
        return createBy;
    }
    public void setUpdateBy(Long updateBy) 
    {
        this.updateBy = updateBy;
    }

    public Long getUpdateBy() 
    {
        return updateBy;
    }
    public void setCalcMonth(String calcMonth) 
    {
        this.calcMonth = calcMonth;
    }

    public String getCalcMonth() 
    {
        return calcMonth;
    }
    public void setStuNum(Long stuNum) 
    {
        this.stuNum = stuNum;
    }

    public Long getStuNum() 
    {
        return stuNum;
    }
    public void setAddStuNum(Long addStuNum) 
    {
        this.addStuNum = addStuNum;
    }

    public Long getAddStuNum() 
    {
        return addStuNum;
    }
    public void setAddStuAmount(BigDecimal addStuAmount) 
    {
        this.addStuAmount = addStuAmount;
    }

    public BigDecimal getAddStuAmount() 
    {
        return addStuAmount;
    }
    public void setRenewStuNum(Long renewStuNum) 
    {
        this.renewStuNum = renewStuNum;
    }

    public Long getRenewStuNum() 
    {
        return renewStuNum;
    }
    public void setRenewStuAmount(BigDecimal renewStuAmount) 
    {
        this.renewStuAmount = renewStuAmount;
    }

    public BigDecimal getRenewStuAmount() 
    {
        return renewStuAmount;
    }
    public void setRenewType(Integer renewType) 
    {
        this.renewType = renewType;
    }

    public Integer getRenewType() 
    {
        return renewType;
    }
    public void setActAmount(BigDecimal actAmount) 
    {
        this.actAmount = actAmount;
    }

    public BigDecimal getActAmount() 
    {
        return actAmount;
    }

    public Integer getReadFlag() {
        return readFlag;
    }

    public void setReadFlag(Integer readFlag) {
        this.readFlag = readFlag;
    }

    public String getSchoolName() {
        return schoolName;
    }

    public void setSchoolName(String schoolName) {
        this.schoolName = schoolName;
    }

    public BigDecimal getFee() {
        return fee;
    }

    public void setFee(BigDecimal fee) {
        this.fee = fee;
    }

    public Integer getStuCount() {
        return stuCount;
    }

    public void setStuCount(Integer stuCount) {
        this.stuCount = stuCount;
    }

    public String getLinkMan() {
        return linkMan;
    }

    public void setLinkMan(String linkMan) {
        this.linkMan = linkMan;
    }

    @Override
    public String toString() {
        return  ToStringBuilder.reflectionToString(this,ToStringStyle.JSON_STYLE);
    }
}
